package com.xinggq.auth.api.dto.login;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 令牌信息DTO
 *
 * @author xinggq
 * @since 2024-10-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "令牌信息")
public class TokenInfoDTO {

  @Schema(description = "访问令牌")
  private String accessToken;

  @Schema(description = "刷新令牌")
  private String refreshToken;

  @Schema(description = "令牌类型")
  private String tokenType;

  @Schema(description = "过期时间（秒）")
  private Long expiresIn;
}